package com.ljc.dao;

import com.ljc.entity.ExperimentSituation;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface ExperimentSituationDao {

    void addExperimentSituations(List<ExperimentSituation> experimentSituations);

    @Delete("delete from experiment_situation where project_planning_id=#{projectPlanningId}")
    void deleteByProjectPlanningId(int projectPlanningId);
}
